<template>
    <div>
        <el-form model="form">
            <el-form-item label="状态 " desc="" prop="state"
                          disabled="false">
                <div class="tip" slot="label">
                    字段可选值
                    <el-tooltip class="item" effect="dark" content="多选请使用【换行】" placement="top">
                        <i class="el-icon-question"></i></el-tooltip>
                </div>
                <el-input v-model="valueList" type="textarea" :rows="4"
                          style="width: 520px;" :disabled="false" placeholder="字段可选值，多选请使用【换行】"
                          clearable=""></el-input>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
  import * as api from '@/apis/confFormField.api.js';
  
  export default {
    data() {
      return {
        id: '',
        valueList: '',
      };
    },
    methods: {
      initByDialog(_data) {
        this.id = _data && _data.id;
        this.valueList = _data && _data.valueList;
      },
      async submitByDialog(_data) {
        await api.update({
          id: this.id,
          valueList: this.valueList,
        });
        return { success: true };
        
      },
      
    },
  };
</script>
